package com.fyp.quickshare;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;

public class Splash extends Activity {
	Intent mainActivityLauncher;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_splash);
		mainActivityLauncher = new Intent(this, WiFiDirectActivity.class);

		Thread timer = new Thread() {

			public void run() {
				try {
					sleep(3500);

				} catch (Exception e) {
					e.printStackTrace();
				} finally {

					startActivity(mainActivityLauncher);
				}
			}

		};
		timer.start();
	}

	@Override
	protected void onPause() {
		// TODO Auto-generated method stub
		super.onPause();

		finish();
	}

}
